remove usless declarations