invoke method in object