adapt size of the cases