changed main to int