nan value solved and infinity also removed + number problem solved