performance update for read and write