combine representation methods to one as setRepresentation