implement creat, close #2