removing rand dir