Back to reg sample code