removed unused variable and whitespaces