Partial can remove elements, fix some bugs with loops