cleaing up errors