player functions added