removing segranks to separate directory