remove non recursive size method