changed the logic from manhattan to here... I think it's really ugly, but w/e