removed (e) latex errors
added (f) calculations