moved origin plots out of subset loop