changed file permissions to 777