fixing arity of act in javaClient