nesting error for files fixed