routine, still working
starts to function on our test example