declare loop variable $p

this hopefully unbreaks the evalbot