use java interface