moved unit code into intermol - currently not functioning