removing unused $res