removed unused local
fixed stride bug - outputX should be ceiled instead of floored
fixed stride bug for other modules