removing unnecessary method call