changed to use drop instead of split