remove pointless variable assignment