fixed all variables and the output