prevents side-effect on foreign objects when appropriate