forgot to put error checking back