change legal size for optimisation