added alex's code for GPR