realise the sequence stack