removed an unnecessary function