added functionality for triangle partially