removed nan and inf