added void functionality