added set functionality