add size method; and small fix