another tweak on the coffeescript code