derp in the while function