remove deprecated methods
do not allow write when it is not declared