replacing user_id with id