clean nn input