just changed printing early
done a merge