remove needless declarations