removed unused functions and resources