basic reduce solution