implemented nan remover