Particle creation in the presence of medium