made it more coffeescript-ish