deleted unused function
cleaned code