final code for nov 17