restoring the pieces