Star formation and metallicity