changed Java type call to Ruby