change directory for ddetection methods