changed order of enc params