base triple implementation, fixing