started converting to coffeescript