tested in irb