corrected typeof