correctly creating out directory