sequence by code