comit with main function