getting rid of redundant directory