fix joes code