removed resampleGLM function. not used? redundant