call on_size when created