helpers for ruby