fixed for new google api version