fixed assert statments