add map and filter method.