add size control

Change-Id: I38b8d98b1afb21c116e12ea4f885c7a93d88bf7e