fixed writing assert statement