again trying to work on this back trace method .. start and end conditions are odd