added ported assertion helper