changed variable name and clean up the code