remove unused variable assignment