selective repeat logic added .. compliled but did not run