uncommented functions in main