change ruby [return] function