update code for mergant