generation of groups in cache + graphic inteface