working on trianglation