fixed unnecessary method invocation