corrected type in print and changed number of writes