ava and ltv functions