use new-line helper def in core
hamm solution added