turn block to an object