added protected attributes