code to do fast functional reggression
code to do fast functional reggression