Updated to p247 of ruby