change to coffeescript