fix function name
remove unused variable