catch exception for difference map