wrote print and fixed reader