deleted the outdated zigzag functions