got example working better