initial atom reader code