Thanks very much for your guidance. it is very well structured. it works eventually. my mistake was in selecting the wrong groups for custom states.