mod: readable code for diminish