removed buffer from struct