removed some dead code and added a note