put global more before loop in single to stop strange things happening in barley editor