initializiation flag was being set to true instead of false so the hhart never got out of an initialization phase