added filter for resource