add if statement for google integration