fixing bug in deadmethods2