added fig and gnddirection to varied parameters