changed chmod to octal notation