changed variable to y for foo