removed double directory changing