changed the arguments to exit to predefined constants