deleted unused function and constant