pointless copying of buffer removed