start Legendre functions