fix createMethods method