it works,but removes a lot of code