Removed factor from ruby code