removed leftovers from reader function