remove can changes the capacity now, tested in main