changed to coffee script