changed return type of main(), and reseted