removes ununsed code