files and parts of the code deleted to simplify implementation