eliminated unused functions