implemented page write privilege