changed add function to hunk add