added update representation method and tests