first p regulator implementation