Switch triangle to simple function