implemented the buffered command corretly this time
minor change