major revision of code