fixed some triangle stuff