working on write /selection