changed mutex into rw-lock