parse error at 3:8: global var "pile" can't also be a function