simplified, add conditions for different atom types later