fixed setting of method type