check value of bin is not None in correct HT bin
conform to pep8 and use of join()