alter nn to have range [0,1]