add additional maxSize param varible