reached enlightenment on sandwich code