main() change to new coding convention