added temp buffer cons
merged
temp buffer works