Nucleon transfer in heavy ion reactions