minmax size function delete