make it better use java mode