bettered code