update main block