added heart java delegate