added global to save fields