get id from sequence