added retrieve representation method and test