getting rid of some errors