extracted out common elements