renamed the ganularity variables to fg and ag