removing size from rd/wr functions