removed unused variable
fixed compile warning