function for resource paths