added function to protect inodes