change form of list for java interop