Ruby18 compatability