changed ambiguos name to dir