type error corrected