removed buffer usage because it is not working at all