modular: add Up, average, generate density