adding crimp function