modified for high res simulation