corrected params injection