renamed directory
solved in bash
modified loop
modified loop