simplify ransacker method