add function headers_sent