shift() is deprecated, use remove(0)