took out the double entities and commented out the debug