remove duplicate prototypes. Have not checked if there are more.