Removing unnecessary method call