now using underscore library to develop the filter function