before upload to google