implemented end and piece missing