change pi detection