using instance for uplaod