move ruby code