convertAtoms now includes negative atoms aswell