use built-in ruby method