changed the loop and got rid of the class calls in the method calls