styled read and write
fixed merge conflicts