fixing assertions