removed redundant result removal code