add reduction of similar and put separate function to convert equation coeffitients