fixing code back to earlier