update for error checking