getting close to figuring out the error