added filtering to resources