added exception for changing baseAddress