modified inside player class