fixed some errors of Type of method