optimizing consumption