expanded example works per suggestions from Erik