new functions file for ltv