remove unnecessary function