fixed typo in variable name
using puppi for scoping