buffer assigment was in for loop
v0.0.2