converting println to assert