some optimisation in atom building from xtc