small improvements to erb file