if, group and advanced working in simple tested, added compound format