phew, pieces wrong behavior bug fixed