using getOrCreate insteading of regist