fixing assert statements