BUG: speedval used for isinside - bad idea