complying with some ruby best practices