first working version of terms