removed old code
fixed error