how to add block and create layer