userId type corrected