adding new lines to state