adding if statement to gpi