adapting for int ResourceId