typeError fixed