bug minore in main.cpp