finished remove and size functions