fixed terms (made it possibly faster)