setting nan in debug mode for field allocation
fixing zeroing out rates