minor edits to Rglm