changed dirname