move temp atom generator to atom class