changed file permisions and a little unused parameter error