scripts for diff methods