very weird indeterministic error - quite frustrating