setting buffer initially to empty