method invocations working