use a atom operator to get last id