ran error tests and fixed all found errors