The error of perception and the illusion that follows