added loc arg to IM2