proper definition of methods