added max and min width