updated to use ruby 2.0
removing Array class check