bug with number of potential params