clearing correctly