added a system call to create different directory for different Re