attempting to figure out what is throwing the error here