compose some functions, defjava is no more, for now