split get_nuclei and get_reactions into own functions