ruby syntax updated to 2.0 style