match sizes to calculations