changed the main to return exit success