fixed echo line at the end