reg with method elimination