figuring out errors