fixed 1.8 ruby syntax