working in raw Java