taking up no more space than necessary