added hpr macro