shouldn't this error be called in ```set```