init implementation : making directory function completed