added setsize method