fixing previous errors