removed unnecessary function