delete duplcation in utilities.rb