Ruby2 compatability