addded override quantity option