made the project build, changed the funcitons calls so that they were done properly