figuring out error