add weight and compress qf