tries to define group and page properly