changed the parameters to update a player