We have developed a detailed model of the frontside illuminated CCD response to the X-ray illumination. The model is based on the Monte-Carlo technique. Photons of given energy are thrown into the random positions on the CCD surface and the device reaction is calculated for each individual photon. The most important new features of our model are discussed below.