commented code for piece