bug fixed, triangle working