added google code and reset afterAccess