added silent = TRUE in a try error of the lsgr function