modified ecran function