refactor create room method using