intermediate code for weekend update