major programs page code cleanup