changes to permissions and code formatting