cleaned undefined variableds