removed old code to fix upload error