does the error function have a return? hmm