remove excess function not being called