refactoring
Read/Write functioning