some more code for fixing atomtype assignments