removed unusued ui parameter from param.length