changed structure of program