auto-increment id in reducer