trying to cast positions to double?