clear errors better