add size calculating