adding GD and AVG