updated example. cleaned debug stuff