removed unused functions