silly error caused by not coping all the code from underscore