changed directory names
implemented naiveg