upload function need fixed