determine themes rules