fixed the stack overflow error and deleted the commented out errors