removed spamming writelines