fixed bugs, did first traverse