adds protected attributes