minor changes to secrgam.fit