changed resource_id to hash_id