got last-non-zero to work