working on fixing method invocation error