restore some code in results.coffee