replace _.find with _.findWhere to make it compatible with underscore