removed debug writelines