removing unnecessary function