added unexistent method for rubies < 2.0