code change to lonDir latDir