re-added original buffer fun