transformInstance