fixing protected variables