set size on ready