added (g) calculations