block lifting code