moved update block and fixed comment