exploration function working