A computer simulation study of potential enhanced doping mechanism in molecular beam epitaxy