adds commands for triangle