variablise groups & fix line spaces