added readline function but its unused