solved performance issue because of missing buffer