refactored ruby_cal initialize