just stepped back and analysed the code