adding a reference to obstacles