updating the resource layer