added some player functions