fixed loopy stuff again