add filter function to Plan module