add callback for players
combine code
combine code