add compare files function