checking write-access