small changes to regulator