removed unused func
added comment