only for ruby