added storing for RW