new changes are added in the method main