updated file needed to return 0 at the end of integer function to validate error message: xcode did not know if the function was ending