add missing curly
remove unused variable