more idiomatic coffeescript