remastered algorithm
function to defines which options to trigger on