put the error in proper location.