fix: need to clear the representation list on each loop
add convenience function and test it