fixed breakend 2 and removed debug print lines