converted to coffeescript closes 11