cleaning from errors