deleted unnecessary functions. Tests still pass currently.