extra new lines not outputted
updated