removed the pack() and changed to octal assignment