remove unnecessary assertion

add a var