deleting unused legacy code