adding adapt.inp var for bubble logic