change id to name when creating message