creat completed, made changes to is_exist() in util.c