unlink working in event