clean Tower's code, easier to read.