sandwich code