margins implemented