removed and added code

removed code that didnt work and tried coded to add code