styling to conform to scala style