aditional testing for NAN and INF
returned to initial testing and printing