clearing up loose spaces