having read and write functioning now