remove unneeded declarations