only calculate size of needed columns