function for callback
Merge pull request #2 from osminushkin/xserosm2

function for callback