bugfix variable reference
update example