implemented SRRIP- first cut