remove warning in older Ruby versions