modified helper method id to user_id