improve safety of size stuff