added new functionality for reverse study