working with some errors