sandwich genearation