replacing magic number
newline formatting