change directory and structrue