fixed error msg bug and inserted a small time delay to avoid google limit