change to adapt dir