added return value for appendOption