slight refactor on method invocation