added logic to print just one confimation message, closes #4