New tri functions added