seem to have fixed working in two dimensions when not in barrier presence