added a few modifications to the programme part1