removed prints and only run if tanks exist