had to update so it would recognize and output empty lines