add prototype to fix compiler warning