renamed functions/ took out unnecessary api