upgrade room function