remove margin calculations