remove excess function