working but we have to add calculation for timing and fragmentation