remove pointless code