fixed special characters
cleaned up the code