algebra_by, simplified code by grouping qml items