made sure folders not copied inside themselves