add max size attribute