simplified ruby