- java call back function implementations