remove excess func