massive simplification of program