minor parallelization fixes and moving window casting to float