remove needless functions