trying to debug buffer