codes to model some scens