added room function table