fixed nano main cpp