Fixed update functions and header blocks

Signed-off-by: Ian bell <ian.h.bell@gmail.com>