renaming block variable to piece