removed forEach; updated file perms