A Computer program for determining a working profile for controlling a radiation system in refractive eye surgery, said program comprising:a user interface for input of data by a user; a data receiving interface for receiving measured data regarding the eye to be corrected; a working profile generator for generating a working profile on the basis of the input data and measured data; a generator for generating control data for controlling electromagnetic radiation; a simulator for simulating a treatment result on the basis of said control data for controlling the electromagnetic radiation and the effect of said radiation on eye tissue; a judgment stage for judging said treatment results by applying pre-given criteria; an iteration loop for generating iteratively, in case of a negative judgment, another amended profile on the basis of other data or for generating iteratively other control data for controlling the electromagnetic radiation; and a transfer means for transferring control data to a control of the radiation system in case of a positive judgment in the judgment stage.