better handling for sizes