fixed bag with infinity loop
created potential mapping