space checking