dont replaced quit() in main with return. Forgot return existed