typo in main func - fixed