checked diff functions