add functions in room