implemented gender switch