second attempt at making directory