changed param `id` to `userId` in getUser method