updated pivotl for better grid