use this instead of local variable in examples