refactor googleservice