read_ings function