main now returns 0, fixed unused params