fixed a bug (<- instead of in within the for expression)