get rid of unnecessary function