added abundances code