pass values to rightTriangle and fix spacing