add minor fix. remove unused variable