updated method name, added setDeliverType(int)