fixing bug in nn params creation fun