print statement overwritten