translate into Ruby ;)