remove obsolete code from Program class