Made triangle functional