restructuration done,starting debugging.