changed removeoutside to removeexternal