removed a NameError: cannot remove ... like Stephan said