doesnt work in ruby