fix use of method ona non obliect