Changed inline function of between