fixed typo
moved blockId to block as an enum