added threshold number in coffeescript file