Chemical evolution of star - forming regions