not entirely sure about clearing empties