solves a tube