drop unneeded declarations