merge of pisa.mean with pbiecek/intsvy