Overflow bug for certain EDGE variables. Add capping function
nan treated as missing
nan treated as missing