function "open" done.