added player functions