deleted unused funtions