removed a debugging statement, fixed an error occurring on first run