updated gronsfeld and bugs fixed