documentation for compare