save
consistent formatting
fixed rule logic a bit, some style experiments