implemented underscore differences function