deleted unused function definitions