changed add variable to add field