add fields to variables