localize argument scopes
finished the calculation parts
finished the calculation parts
fixed bug on row change