added margin for max size