formart reg query response