use block to configure attributes