reddd
cleaned the code