add printing errors