gets rid of empty error function