#48. added check for write permissions