simplified variables and conditions