correcting order of params