optimized the review process code and did some organiziing