add some functions for room managment