added registerBlockWithItem helper method