injecting an object/model into the filter