cleaned upped variabl names and variable assignment