created next variable for formula