remove code from the load function which did not use at all