removed extraneous res scatter variables