pieces added and displayed and the some code-refactorying