removed old unused functions