change accumolation variable start with 0