fixed QTree transformation and modified QTree engine for better performance