slight ruby extension code when my works.