replaced delete_at(0) with shift