added a concept for write command