use assert to replace println