removed turning fraction bug and added some debug information