made fn that can read objs