bugfix: redeclare values in every iteration. php is weird..