* change size calculate function