fix indent and wrong function name in main file