make room function