remove assigned but unused variable warning