refactoring on qrs_panel variables