spatial acceleration working
using dmeyers versions to resolve conflict