complete sandwich code