deleted some redondant functions removed from the main file callback