then you are doing something wrong… you have to separate logic and data see an example here
see also
Taifun