fixed previous commit to use correct assert