set paramsLength in success