add alspgrad_updatew (tested)