pass the third paramer to callback