added code for all players